package com.shelpe.services.sinbad.entity.jpa;

public enum OnlineStatus {
	online("online"), offline("offline");
	
	private String value;

	private OnlineStatus(String v){
		this.value = v;
	}

	public String getValue() {
		return this.value;
	}
	
	public static OnlineStatus from(String value){
		OnlineStatus en = OnlineStatus.online;
		for (OnlineStatus s : OnlineStatus.values()) {
			if (s.getValue().equals(value)) {
				en = s;
				break;
			}
		}
		return en;
	}
}
